package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IApiSettingDao;
import com.financing.platform.dto.ApiSettingDTO;
import com.financing.platform.service.IApiSettingService;

/**
 * 
 * @ClassName: ApiSettingServiceImpl
 * @Description: api数据配置 
 * @author  qiye
 * @date 2014年11月20日 下午7:10:44
 *
 */
@Service("apiSettingServiceImpl")
public class ApiSettingServiceImpl extends BaseServiceImpl implements IApiSettingService {

	@Autowired
	private IApiSettingDao apiSettingDaoImpl;
	
	public List<ApiSettingDTO> queryApiSetting() throws SQLException {
		return apiSettingDaoImpl.apiSettingList();
	}

	public int addApiSetting(ApiSettingDTO apiSettingDTO) throws SQLException {
		return apiSettingDaoImpl.addApiSetting(apiSettingDTO);
	}

	public int updateApiSetting(ApiSettingDTO apiSettingDTO)
			throws SQLException {
		return apiSettingDaoImpl.updateApiSetting(apiSettingDTO);
	}

}
